import request from '@/utils/request'

// 查询科普文章1列表
export function listSa(query) {
  return request({
    url: '/om/sa/list',
    method: 'get',
    params: query
  })
}

// 查询科普文章1详细
export function getSa(saId) {
  return request({
    url: '/om/sa/' + saId,
    method: 'get'
  })
}

// 新增科普文章1
export function addSa(data) {
  return request({
    url: '/om/sa',
    method: 'post',
    data: data
  })
}

// 修改科普文章1
export function updateSa(data) {
  return request({
    url: '/om/sa',
    method: 'put',
    data: data
  })
}

// 删除科普文章1
export function delSa(saId) {
  return request({
    url: '/om/sa/' + saId,
    method: 'delete'
  })
}
